<?php if ($slide->getSection()): ?>
\section<?php echo $slide->getSectionShort() ? '['. $slide->getSectionShort() .']' : ''?>{<?php echo $slide->getSection() ?>}
<?php endif; ?>
<?php if ($slide->getSubsection()): ?>
\subsection<?php echo $slide->getSubsectionShort() ? '['. $slide->getSubsectionShort() .']' : ''?>{<?php echo $slide->getSubsection() ?>}
<?php endif ?>

\begin{frame}<?php echo $slide->getIsPlain() ? '[plain]' : '' ?>

  <?php if ($slide->getTitle()): ?>
    \frametitle{<?php echo $slide->getTitle() ?>}
  <?php endif ?>
  <?php if ($slide->getSubtitle()): ?>
    \framesubtitle{<?php echo $slide->getSubtitle() ?>}
  <?php endif ?>
  <?php echo $slide->getContent() ?>

\end{frame}
